﻿using Newtonsoft.Json;

namespace PDFDesign.Model
{
    /// <summary>
    /// React属性
    /// </summary>
    public class Rect
    {
        /// <summary>
        /// 距离左边缘距离
        /// </summary>
        [JsonProperty("left", NullValueHandling = NullValueHandling.Ignore)]
        public float Left { get; set; }
        /// <summary>
        /// 距离上边缘距离
        /// </summary>
        [JsonProperty("top", NullValueHandling = NullValueHandling.Ignore)]
        public float Top { get; set; }
        /// <summary>
        /// 控件宽
        /// </summary>
        [JsonProperty("width", NullValueHandling = NullValueHandling.Ignore)]
        public float Width { get; set; }
        /// <summary>
        /// 控件高
        /// </summary>
        [JsonProperty("height", NullValueHandling = NullValueHandling.Ignore)]
        public float Height { get; set; }
    }
}